<template>
  <div class="my-colleciton">
    <commu-item :artiList="artiList" />
    <el-empty v-if="!artiList"
              description="你还没有收藏哦"></el-empty>
  </div>
</template>

<script>
import commuItem from '@/components/CommuItem.vue'
import { myCollect } from '@/api/article'
export default {
  components: {
    commuItem
  },
  data() {
    return {
      artiList: [
      ]
    }
  },
  methods: {
    // 获取个人发布文章
    async initmyCollect() {
      let { data: res } = await myCollect()
      console.log(res)
      this.artiList = res.data
    }
  },
  created() {
    this.initmyCollect()
  }
}
</script>

<style>
</style>